import { tableProps } from 'ant-design-vue/es/table';

export const SchemaTableProps = {
  ...tableProps(),
  headerTitle: {
    type: String,
  },
  columns: {
    type: Array,
    required: true,
    default: () => [],
  },
  fetchAction: {
    type: Function,
    required: true,
  },
  removeAction: {
    type: Function,
    required: true,
  },
  modifyAction: {
    type: Function,
    required: true,
  },
  createAction: {
    type: Function,
    required: true,
  },

};

export enum ACTION_TYPE {
  REMOVE,
  UPDATE,
  CREATE,
}
